package com.hjt.gulimall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.hjt.common.utils.PageUtils;
import com.hjt.gulimall.product.entity.AttrEntity;
import com.hjt.gulimall.product.entity.AttrGroupEntity;
import com.hjt.gulimall.product.vo.AttrGroupRelationVo;
import com.hjt.gulimall.product.vo.AttrGroupWithAttrVo;
import com.hjt.gulimall.product.vo.SkuItemVo;

import java.util.List;
import java.util.Map;

/**
 * 属性分组
 *
 * @author huangjingtai
 * @email 970075985@qq.com
 * @date 2021-09-08 16:15:19
 */
public interface AttrGroupService extends IService<AttrGroupEntity> {

    PageUtils queryPage(Map<String, Object> params);

    PageUtils queryPage(String catelogId, Map<String, Object> params);


    void deleteRelation(List<AttrGroupRelationVo> params);

    List<AttrGroupWithAttrVo> getAttrGroupWithAttrsByCatelogId(Long catelogId);


    // 查找spu对应的所有属性分组信息以及每个分组下所有属性对应的值
    List<SkuItemVo.SpuItemBaseGroupVo> getAttrGroupWithAttrsBySpuIdAndCatalogId(Long spuId, Long catalogId);
}

